package com.xuesinuo.ots;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

import com.xuesinuo.ots.config.pignoo.PignooConfiguration;
import com.xuesinuo.pignoo.autodatabase.EntityScanConfig;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@EnableScheduling
@SpringBootApplication
public class Application {
    public static void main(String[] args) throws Exception {
        PignooConfiguration.PIGNOO_SCAN_MODE = EntityScanConfig.BuildMode.USABILITY; // 自动更新数据库
        SpringApplication.run(Application.class, args);
    }
}